<!--
 * @Author: Bobby
 * @Date: 2021-12-30 10:01:42
 * @LastEditTime: 2022-02-16 17:39:25
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\project\bobby\views\index.vue
 * CIMC-V2
-->
<template>
  <div class="index-container">
    <button @click="demo">首页</button>
    <div id="child1"></div>
  </div>
</template>

<script>
  import { defineComponent } from 'vue'
  export default defineComponent({
    name: 'Index',
    data() {
      return {
        index: true,
        code: '',
        data: { from: '来自基座的初始化数据' },
      }
    },
    created() {
      console.log('index')
      if (this.index) {
        console.log('created')
        this.index = false
      }
    },
    methods: {
      demo() {
        console.log('次数')
      },
    },
  })
</script>

<style lang="scss" scoped></style>
